﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Eqwww.Config
{
    public class AppConfig
    {
        [Display(Name = "系统名称")]
        [Required(ErrorMessage = "本项不能为空")]
        public string AppName { get; set; }

        [Display(Name = "版本")]
        [Required(ErrorMessage = "本项不能为空")]
        public string AppVersion { get; set; }

        [Display(Name = "系统状态")]
        [Required(ErrorMessage = "本项不能为空")]
        public bool IsOpen { get; set; }

        [Display(Name = "系统关闭原因")]
        [Required(ErrorMessage = "本项不能为空")]
        public string CloseReason { get; set; }

        [Display(Name = "主题色")]
        [Required(ErrorMessage = "本项不能为空")]
        public string DefaultThemeColor { get; set; }

        [Display(Name = "强调色")]
        [Required(ErrorMessage = "本项不能为空")]
        public string DefaultAccentColor { get; set; }

        [Display(Name = "强制深色菜单背景")]
        public bool DarkDrawer { get; set; }

        [Display(Name = "强制Appbar浅色背景")]
        public bool WhiteAppbar { get; set; }

        [Display(Name = "姓名优先")]
        public bool RealNameFirst { get; set; }

        [Display(Name = "允许使用自定义头像")]
        public bool CanUseCustomAvatar { get; set; }

        [Display(Name = "允许修改自定义头像")]
        public bool CanEditSelfCustomAvatar { get; set; }

        [Display(Name="自定义头像上传图片最大尺寸(KB)")]
        public int SelfAvatarImageMaxSize{get;set;}

        [Display(Name = "记住登录使用开关")]
        public bool LoginRemberMeUseToggle { get; set; }


        [Display(Name = "meta关键字")]
        public string MetaKeywords{get;set;}
        [Display(Name = "meta描述")]
        public string MetaDescription{get;set;}


        [Display(Name = "HUB服务器地址")]
        [Required(ErrorMessage = "本项不能为空")]
        public string HubServerUrl { get; set; }

        [Display(Name = "启用AD域登录")]
        public bool UseADLogin { get; set; }

        [Display(Name = "AD域地址")]
        public string ADPath { get; set; }

    }
}
